package com.csun.dsms.mapper;

import com.csun.dsms.model.domain.DsmsUnit;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;
import java.util.Set;

public interface DsmsUnitMapper extends Mapper<DsmsUnit> {
    /*
     *单位的查询
     * */
    List<DsmsUnit> query(DsmsUnit dsmsUnit);

    List<DsmsUnit> queryByCondition(DsmsUnit unit);
    /*
     * 查询已绑定单位
     * */
    Set<Long> unitExist();
    //根据片区查询单位
    List<DsmsUnit> queryUnitByAreaId(Long areaId);
    //查询镇
    Integer selectUnitByPid();
}